import Router from 'koa-router'
import PublicController from '@/api/PublicController'
import ContentController from '@/api/ContentController'
import CommentsController from '@/api/CommentsController'
import UserController from '@/api/UserController'

const router = new Router()
router.prefix('/public')
router.get('/getCaptcha', PublicController.getCaptcha)
router.get('/reset-email', UserController.updateUsername)
router.get('/getsign', PublicController.getSign)
router.get('/topWeek', ContentController.getHotWeek)
router.get('/adver', ContentController.getadver)
router.get('/content/detail', ContentController.getPostDetail)
router.get('/comments', CommentsController.getComments)
router.get('/info', UserController.getInfor)
router.get('/getinfo', UserController.getUserInfor)

export default router
